﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting">
       <Columns>
           <asp:BoundField DataField="Id" HeaderText="id" />
           <asp:BoundField DataField="Title" HeaderText="标题" />
           <asp:BoundField DataField="Content" HeaderText="内容" />
           <asp:BoundField DataField="Author" HeaderText="作者" />

           <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />

       </Columns>

    </asp:GridView>
    <asp:Button ID="Button1" runat="server" Text="jia" OnClick="Button1_Click" />
</asp:Content>
